package com.bringway.p2p.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bringway.p2p.dao.SysDao;
import com.bringway.p2p.service.SysService;

import net.sf.json.JSONObject;
@Service
public class SysServiceImpl implements SysService{
	@Autowired
	private SysDao sysDao;

	@Override
	public List<Map<String, Object>> querySysinfo(JSONObject params) {
		return sysDao.querySysinfo(params);
	}

	@Override
	public int getCount(JSONObject params) {
		return sysDao.getCount(params);
	}

	@Override
	public boolean insertSysinfo(Map<String, Object> paramMap) {
		return sysDao.insertSysinfo(paramMap)>0;
	}

	@Override
	public boolean updateSys(Map<String, Object> paramMap) {
		return sysDao.updateSysinfo(paramMap)>0;
	}

	@Override
	public boolean publicSysNotice(Map<String, Object> paramMap) {
		return sysDao.publicSysNotice(paramMap)>0?true:false;
	}

	
}
